App.Window = function(config){
	Ext.applyIf(config, App.Config.window);
	Ext.apply(this, config);
	App.Window.superclass.constructor.call(this, config);
};

Ext.extend(App.Window, Ext.Window, {
	listeners: {
		beforeshow: function(win){
			App.Taskbar.addWin(win);
		}
		,beforeclose: function(win){
			App.Taskbar.removeWin(win);
			win.hide(App.Desktop.id);
			return false;	
		}
		,minimize: function(win){
			win.hide();	
		}
	}
});